<style>
</style>
<template>
    <ly-page>
        <ly-navi title="富文本"></ly-navi>
        <ly-page-content>
            <ly-simditor v-model="content"></ly-simditor>
            <ly-code-view>
                <pre v-pre>
<ly-simditor v-model="content"></ly-simditor>

    Ly.config({
        simditor: {
            upload: {dataUrl: "https://job-job.duoyun6.com/oss/uploadInfo", fileKey: 'file'},
            toolbar: ['title', 'bold', 'italic', 'underline', 'strikethrough', 'fontScale', 'color', 'ol', 'ul', 'blockquote', 'code', 'table', 'link', 'image', 'hr', 'indent', 'outdent', 'alignment'],
        }
    });
                </pre>
            </ly-code-view>
            <ly-markdown>
              <pre v-pre>
## `ly-simditor`

#### 全局参数

| 属性名  |说明   | 类型|可选值|默认值|
| ------------ | ------------ |------------ |------------ |------------ |
|  simditor.upload.url | 文件上传路径 和 dataUrl 二选 1	  |String |—	|—	|
|  simditor.upload.dataUrl | 上传前的网络请求,获取的内容会用于上传	参照 ly-upload 的 uploadDataUrl	  |String |—	|—	|
|  simditor.upload.fileKey  |文件上传的文件键名	  |String |	|	|
|  simditor.toolbar  |显示工具  |String |	|	|


#### Attributes

| 属性名  |说明   | 类型|可选值|默认值|
| ------------ | ------------ |------------ |------------ |------------ |
|  v-model | 绑定的值	 |string |-	|-	|
            </pre>
            </ly-markdown>
        </ly-page-content>
    </ly-page>
</template>
<script>
    Rap.define("", [], function () {
        return {
            data: function () {
                return {
                    content: '',
                    count: 8
                }
            },
            mounted: function () {
//
            },
            methods: {}
        }
    })
</script>